<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 头部 */
        .head {
            position: relative;
            border: green 2px solid;
            margin: 5px;
            /* background-color: blue; */
            width: 99%;
            height: 200px;
            left: 0px;
            top: 0px;
        }

        /* LOGO */

        .head_logo {
            font-size: 30px;
            display: inline-block;
            position: absolute;
            /* background-color: chartreuse; */
            border: red 2px solid;
            width: 120px;
            height: 120px;
            left: 10px;
            top: 10px;


        }

        /* 用户名 */
        .head_name {
            font-size: 20px;
            display: inline-block;
            position: absolute;
            /* background-color: chartreuse; */
            border: black 2px solid;
            width: 120px;
            height: 40px;
            right: 10px;
            bottom: 10px;

        }

        /* 主题 */
        .main {
            position: relative;
            /* background-color: yellow; */
            float: right;
            width: 99%;
            height: 400px;
            /* border: blueviolet 2px solid; */
            font-size: 20px;
            left: -10px;




        }

        /* 主体1  自适应布局，通过定位实现 */
        .main_1 {




            position: absolute;
            left: 0px;
            border: blue 2px solid;
            right: 220px;

            /* margin-right: 0px; */

            /* background-color: blue; */


            height: 100%;

            font-size: 20px;
        }

        /* 主体2*/
        .main_2 {
            /* background-color: yellow; */
            display: inline;
            float: right;
            width: 200px;
            height: 100%;
            border: red 2px solid;
            font-size: 20px;
            padding-left: 5px;
            padding-right: 5px;

            

        }


        /* 尾部 */
        .bottom {
            margin: 5px;
            position: relative;
            border: brown 2px solid;
            margin-right: 0px;

            /* background-color: blue; */
            float: left;
            width: 99%;
            height: 60px;
            font-size: 20px;

        }

        /* 文字 */
        .bottom span {
            position: absolute;
            top: 20px;
            left: 50%;


        }
    </style>
</head>

<body>
    <!-- 头部 -->
    <div id="head" class="head">
        <!-- logo -->
        <div id="head_logo" class="head_logo"> logo</div>
        <!-- 用户名 -->
        <div id="head_name" class="head_name">用户名</div>

    </div>
    <div class="main">
        <!-- 主题左侧 -->
        <div id="main_1" class="main_1">
            content - 自适应布局

        </div>
        <!-- 主题右侧 -->
        <div id="main_2" class="main_2">
            aside - 定宽200px
        </div>
        <!-- 底部 -->
    </div>
    <div id="bottom" class="bottom">
        <span>footer</span>

    </div>

</body>

</html>